<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">

<div class="right">
        <div class="location">
            <strong>当前位置:</strong>
            <span>回访处理页面 >> 回访修改页面</span>
        </div>
        <div class="supplierAdd">
          <form id="storageRecordForm" name="storageRecordForm" method="post" action="${pageContext.request.contextPath }/sys/review/modify">
				<input type="hidden" name="id" value="${review.id}">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="petId">回访宠物：</label>
                    <select name="petId" id="petId">
                        <option value="">--全部--</option>
                        <c:forEach var="item" items="${pets}">
                            <option <c:if test="${item.id == review.petId}">selected="selected"</c:if> value="${item.id}">${item.petName}</option>
                        </c:forEach>
                    </select>
                </div>
                <div>
                    <label for="content">回访内容：</label>
                    <input type="text" name="content" id="content" value="${review.content}" >
					<font color="red"></font>
                </div>

                <div>
                    <label >状态：</label>
                    <c:if test="${review.state == 1 }">
						<input type="radio" name="state" value="1" checked="checked">已回访
						<input type="radio" name="state" value="2" >未回访
					</c:if>
					<c:if test="${review.state == 2 }">
						<input type="radio" name="state" value="1">已回访
						<input type="radio" name="state" value="2" checked="checked">未回访
					</c:if>

                </div>
                <div class="supplierAddBtn">
                  <input type="button" name="save" id="save" value="保存">
				  <input type="button" id="back" name="back" value="返回" >
              	</div>
            </form>
        </div>

    </div>
</section>

<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/review/update.js"></script>